<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .top {
            height: 50px;
            background-color: pink;
            margin-bottom: 10px;  }
        .banner {
            width: 1000px;
            height: 120px;
            background-color: green;
            margin: 0 auto;
            margin-bottom: 10px; }
        .container {
             height:300px ;
             width: 1000px;
             margin: 0 auto; 
            border: 10px solid gray;
            margin-bottom: 10px;
            box-sizing: border-box;
        }
        .box1, .box2, .box3, .box4{
            height: 280px;
            width: 245px;
            border: 3px solid yellow;
            box-sizing: border-box;
           float: left;
           background-color: pink;

        }
        .footer {
            height: 300px;
            width: 100%;
            background-color: cyan;
        }
    </style>
</head>

<body>
    <div>
        <div class="top">top</div>
        <div class="banner">banner</div>

        <div class="container">
            <div class="box1 ">box1</div>
            <div class="box2">box2</div>
            <div class="box3">box3</div>
            <div class="box4">box4</div>
        </div>
        <div class="footer">footer</div>
    </div>
</body>

</html>